CODE> in class DataField
Returns:
String value

getAttributesForElement

protected org.xml.sax.Attributes getAttributesForElement()
get the attributes when saving this fragment to XML as a separate element by default returns empty attribute

Overrides:
getAttributesForElement in class DataField
Returns:
Attributes

getBinaryType

protected int getBinaryType()
Get binary type

Returns:
int

saveFragmentAsAttribute

public void saveFragmentAsAttribute(org.xml.sax.helpers.AttributesImpl attr,
                                    boolean formatted)
                             throws org.xml.sax.SAXException
save the content to XML

Specified by:
saveFragmentAsAttribute in interface IXMLPersistable
Overrides:
saveFragmentAsAttribute in class DataField
org.xml.sax.SAXException

getXMLPresentmentType

protected int getXMLPresentmentType()
Get XML Presentment Type (always element)

Overrides:
getXMLPresentmentType in class DataLayoutField
Returns:
String

CredibleXML
v1.5

Submit a bug or feature

CredibleXML is a trademark or registered trademark of Crediware L.L.C. in the US and other countries.
Copyright 2001-2002 Crediware L.L.C. All Rights Reserved.
DataFieldDateTime (CredibleXML 1.5 Base Framework Specification)
CredibleXML
v1.5

com.crediware.crediblexml.coredef
Class DataFieldDateTime

java.lang.Object
  |
  +--com.crediware.crediblexml.coredef.DataElement
        |
        +--com.crediware.crediblexml.coredef.DataField
              |
              +--com.crediware.crediblexml.coredef.DataLayoutField
                    |
                    +--com.crediware.crediblexml.coredef.DataFieldDateTime
All Implemented Interfaces:
IXMLPersistable

public class DataFieldDateTime
extends DataLayoutField

Copyright (c) 2001-2002 Crediware LLC. Purpose: This class incapsulate datatime field behavior for corresponding document element defined in the GUI. Returned by data accessor method generated by GUI tool.


Constructor Summary
DataFieldDateTime(DataSegment container, MetaData metaData, IExternalDataProvider dataProvider, java.lang.String value)
          constructor creates data element with specified parameters
 
Method Summary
protected  java.lang.String formatDateTime(java.text.SimpleDateFormat formatter, java.util.Date date)
          return string representation of the date provided in the parameters
 java.util.Date getDateTime()
          get date/time
protected  java.lang.String getDefaultInputPattern()
          get default output pattern (pattern in which the date is going to be presented in XML) This pattern is applicable only when user haven't specified the corresponding pattern in the GUI
protected  java.lang.String getDefaultOutputPattern()
          get default input pattern (pattern used in the business format) This pattern is applicable only when user haven't specified the corresponding pattern in the GUI
 java.lang.String getFormattedValue()
          get formatted value of the field
protected  java.util.Date parseDateTime(java.text.SimpleDateFormat formatter)
          parse the date in the layout based on the specific pattern and return a date
 
Methods inherited from class com.crediware.crediblexml.coredef.DataLayoutField
getFieldMetaData, getXMLPresentmentType, isVisibleInXML
 
Methods inherited from class com.crediware.crediblexml.coredef.DataField
getAttributesForElement, getLexicalValue, getValue, isElement, populateDataForElement, saveFragmentAsAttribute, saveFragmentAsElement, setValue, toString
 
Methods inherited from class com.crediware.crediblexml.coredef.DataElement
getDataProvider, getEmptyAttribute, getMetaData, getName, getParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataFieldDateTime

public DataFieldDateTime(DataSegment container,
                         MetaData metaData,
                         IExternalDataProvider dataProvider,
                         java.lang.String value)
constructor creates data element with specified parameters

Method Detail

getFormattedValue

public java.lang.String getFormattedValue()
get formatted value of the field

Overrides:
getFormattedValue in class DataField
Returns:
String value by default returns the